package com.payment.system.domain.wxpay;


import com.payment.common.utils.PropertiesUtil;

/**
 * 微信APP支付
 * 
 * @author SYF
 * 
 */
public class WxAppPayConfig {

	private static final WxAppPayConfig WX_APP_PAY_CONFIG = new WxAppPayConfig();

	public static WxAppPayConfig instance() {
		return WX_APP_PAY_CONFIG;
	}

	public WxAppPayConfig() {
		this.appId =PropertiesUtil.getProperty("wxAppId");
		this.mchId = PropertiesUtil.getProperty("wxMchId");
		this.notifyUrl = PropertiesUtil.getProperty("wxNotifyUrl");
		this.tradeType =PropertiesUtil.getProperty("wxTradeType");
		this.key = PropertiesUtil.getProperty("wxKey");
	}

	/** 应用ID */
	public String appId;
	/** 商户号 */
	public String mchId;
	/** 通知地址 */
	public String notifyUrl;
	/** 交易类型 */
	public String tradeType;
	/** 密钥 */
	public String key;

	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	public String getMchId() {
		return mchId;
	}

	public void setMchId(String mchId) {
		this.mchId = mchId;
	}

	public String getNotifyUrl() {
		return notifyUrl;
	}

	public void setNotifyUrl(String notifyUrl) {
		this.notifyUrl = notifyUrl;
	}

	public String getTradeType() {
		return tradeType;
	}

	public void setTradeType(String tradeType) {
		this.tradeType = tradeType;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

}
